package com.juc.phaser.phaser15;

import java.util.concurrent.Phaser;

public class Run1 {
    /**
     * java.util.concurrent.TimeoutException
	at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Unknown Source)
	at com.juc.phaser.phaser15.ThreadA.run(ThreadA.java:23)
     *  因为 5秒后phaser 阶段没有变化
     */
	public static void main(String[] args) {
		Phaser phaser = new Phaser(3);
		ThreadA a = new ThreadA(phaser);
		a.setName("A");
		a.start();
	}
}
